package cn.yzstu.first;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;

/**
 * @author Baldwin
 */
public class VerticleCode extends AbstractVerticle {
    @Override
    public void start(Future<Void> startFuture) throws Exception {
        // 现在部署其他的一些verticle
        vertx.deployVerticle(VerticleExample.class.getName(), res -> {
            if (res.succeeded()) {
                startFuture.complete();
            } else {
                startFuture.fail(res.cause());
            }
        });
    }

    @Override
    public void stop(Future<Void> endFuture) throws Exception {
        super.stop();
    }
}
